import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  // {
  //   path: '/about',
  //   name: 'about',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  // }
   {
    path: '/weather',
    name: 'weather',
    component: () => import('../views/Weather.vue')
  },
   {
    path: '/deepComputed',
    name: 'deepComputed',
    component: () => import('../views/DeepComputed.vue')
  },
  {
    path: '/listFilter',
    name: 'listFilter',
    component: () => import('../views/ListFilter.vue')
  },
  {
    path: '/formTest',
    name: 'formTest',
    component: () => import('../views/FormTest.vue')
  },
  {
    path: '/filters',
    name: 'filters',
    component: () => import('../views/Filters.vue')
  },
  {
    path: '/v-Text&V-Html',
    name: 'v_text_html',
    component: () => import('../views/V-Text&V-Html.vue')
  },
  {
    path: '/v_once',
    name: 'v_once',
    component: () => import('../views/V-Once.vue')
  },
  {
    path: '/v_pre',
    name: 'v_pre',
    component: () => import('../views/V-Pre.vue')
  },
  
  {
    path: '/customDirective',
    name: 'customDirective',
    component: () => import('../views/CustomDirective.vue')
  },
  {
    path: '/lifeCycle',
    name: 'lifeCycle',
    component: () => import('../views/LifeCycle.vue')
  },
  {
    path: '/customEvent',
    name: 'customEvent',
    component: () => import('../views/CustomEvent.vue')
  },
  {
    path: '/allEvent',
    name: 'allEvent',
    component: () => import('../views/AllEvent.vue')
  },
  {
    path: '/pubSub',
    name: 'pubSub',
    component: () => import('../views/PubSub.vue')
  },
  {
    path: '/staticComponent',
    name: 'staticComponent',
    component: () => import('../views/StaticComponent.vue')
  },
  
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
